<?php

namespace Payment\Charge\YS;

use Payment\Common\BaseData;
use Payment\Common\YSConfig;
use Payment\Common\YSpay\Data\Charge\PubChargeData;
use Payment\Common\YSpay\YSBaseStrategy;

class YSPubCharge extends YSBaseStrategy{

    /**
     * 获取支付对应的数据完成类
     *
     * @return BaseData
     */
    public function getBuildDataClass(){
        // TODO: Implement getBuildDataClass() method.
        return PubChargeData::class;
    }

    protected function getReqUrl($url = null){
        return parent::getReqUrl($url ?? YSConfig::REQUEST_URL); // TODO: Change the autogenerated stub
    }
}
